package com.unisv.dj;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
/**
 * 
 * @author fanzhen
 * @time   8:05:59 PM Sep 23, 2011
 * @email  fanzhen.meng@gmail.com
 */
public class BootReceiver extends BroadcastReceiver {
	@Override
	public void onReceive(Context context, Intent intent) {
		context.startService(new Intent(context,ServerService.class));
        Intent initIntent = new Intent(context,InitActivity.class);
        initIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(initIntent); 
	}
}
